Robot device, method of controlling robot device, computer program, and program storage medium

ABSTRACT

Provided is an excellent robot device capable of preferably detecting difference between dirt and a scratch on a lens of a camera and difference between dirt and a scratch on a hand. A robot device detects a site in which there is the dirt or the scratch using an image of the hand taken by a camera as a reference image. Further, this determines whether the detected dirt or scratch is due to the lens of the camera or the hand by moving the hand. The robot device performs cleaning work assuming that the dirt is detected, and then this detects the difference between the dirt and the scratch depending on whether the dirt is removed.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of, and claims thebenefit of priority under 35 U.S.C. §120 from, U.S. application Ser. No.15/142,611, filed Apr. 29, 2016, herein incorporated by reference, whichis a continuation application of U.S. Pat. No. 9,358,690, issued Jun. 7,2016, which is a National Stage Application of International ApplicationNo. PCT/JP12/060248, filed Apr. 16, 2012, herein incorporated byreference, which claims the benefit of priority under 35 U.S.C. §119from Japanese Patent Application No. 2011-117111, filed May 25, 2011.

TECHNICAL FIELD

The technology disclosed in this specification relates to a robotdevice, which works in a human living environment to communicate with ahuman or perform work such as grasp of an object, for example, a methodof controlling the robot device, a computer program, and a programstorage medium, and especially relates to the robot device, the methodof controlling the robot device, the computer program, and the programstorage medium for detecting difference between dirt and a scratch on alens of a camera and difference between dirt and a scratch on a hand.

BACKGROUND ART

With the rapid advent of aging society, a society in which an agedperson may enjoy a healthy active life without requiring nursing care asfar as possible and in which the aged person requiring the nursing caremay live an independent life without clinical deterioration as far aspossible is needed. In the future, as a need for the nursing care anddomestic help increases, the number of helpers gets short if one helperlooks after one user.

Therefore, there is an increasing need for a mechatronics device such asa robot aimed to carry housework and the nursing care for the human bycommunicating with a human and performing the work such as the grasp ofan object mainly in aged care facilities and families with an agedperson.

Most of this type of robot devices are provided with a camera, detect orrecognize an object in a working space based on an image taken by thecamera, and perform the work such as the grasp. Therefore, when there isthe dirt or the scratch on the lens of the camera, this significantlyaffects ability to detect/recognize an object, and this leads todeterioration in operation efficiency. When there is the dirt on agrasping unit of an object such as the hand, a grasped object gets dirtyand this gives an adverse mental effect to someone who receives theobject.

For example, a robot device, which compares a plurality of images in thesame area to detect whether there is dirt on a lens of a camera fromdifference between images in the same area, is suggested (refer toPatent Document 1, for example). However, the robot device cannot detectwhether the difference between the images in the same area is due to thedirt or a scratch on the lens of the camera, in other words, this cannotdetect the difference between the dirt and the scratch on the lens ofthe camera. Also, the robot device cannot detect the dirt on a hand ordetect the difference between the dirt and the scratch on the hand.

CITATION LIST Patent Document

Patent Document 1: Japanese Patent Application Laid-Open No. 2008-160635

SUMMARY OF THE INVENTION Problems to be Solved by the Invention

An object of the technology disclosed in this specification is toprovide an excellent robot device and a method of controlling the robotdevice capable of preferably detecting difference between dirt and ascratch on a lens of a camera and difference between dirt and a scratchon a hand.

Solutions to Problems

The present application is achieved in view of the above-describedproblems and the technology recited in claim 1 is

a robot device, including:

a camera;

a hand; and

a controller, which processes an image taken by the camera and controlsoperation of the hand, wherein

the controller

obtains a reference image obtained by photographing the hand set in aspecific position relative to the camera,

detects whether there is dirt on a lens of the camera or the hand bycomparing a first detection image obtained by photographing the hand setin the specific position with the reference image at the time of dirtdetection, and

determines on which of the lens of the camera and the hand the dirt isby comparing a second detection image obtained by photographing the handmoved from the specific position with the first detection image whendetecting the dirt on the lens of the camera or the hand.

According to the technology recited in claim 2 of this application, thecontroller of the robot device according to claim 1 is configured todetermine that there is no dirt on the lens of the camera and the handwhen correlation between the first detection image and the referenceimage is high over an entire image and detect the dirt on the lens ofthe camera or the hand in a low-correlation site when there is thelow-correlation site with low correlation on the image.

According to the technology recited in claim 3 of this application, thecontroller of the robot device according to claim 2 is configured todetermine that there is the dirt on the lens of the camera when thecorrelation is high in the low-correlation site on the image anddetermines that there is the dirt on the hand when the correlation islow in the low-correlation site on the image when comparing the seconddetection image with the first detection image.

According to the technology recited in claim 4 of this application, thecontroller of the robot device according to claim 1 is configured towipe a dirty portion on the lens of the camera and then compares a thirddetection image obtained by photographing the hand set in the specificposition with the reference image to detect whether there is a scratchon the lens of the camera when determining that there is the dirt on thelens of the camera.

According to the technology recited in claim 5 of this application, thecontroller of the robot device according to claim 1 is configured towipe a dirty portion on the hand and then compares a fourth detectionimage obtained by photographing the hand set in the specific positionwith the reference image to detect whether there is a scratch on thehand when determining that there is the dirt on the hand.

The technology recited in claim 6 of this application is

a method of controlling a robot device, including:

a step of obtaining a reference image by photographing a hand set in aspecific position relative to a camera of a robot;

a dirt detecting step of detecting whether there is dirt on a lens ofthe camera or the hand by comparing a first detection image obtained byphotographing the hand set in the specific position with the referenceimage at the time of dirt detection; and

a determining step of determining on which of the lens of the camera andthe hand the dirt is by comparing a second detection image obtained byphotographing the hand moved from the specific position with the firstdetection image when detecting the dirt on the lens of the camera or thehand at the dirt detecting step.

The technology recited in claim 7 of this application is

a computer program for controlling a robot device, which allows acomputer to execute:

a step of obtaining a reference image by photographing a hand set in aspecific position relative to a camera of a robot;

a dirt detecting step of detecting whether there is dirt on a lens ofthe camera or the hand by comparing a first detection image obtained byphotographing the hand set in the specific position with the referenceimage at the time of dirt detection; and

a determining step of determining on which of the lens of the camera andthe hand the dirt is by comparing a second detection image obtained byphotographing the hand moved from the specific position with the firstdetection image when detecting the dirt on the lens of the camera or thehand at the dirt detecting step.

The computer program according to claim 7 of this application definesthe computer program described in a computer-readable format so as torealize a predetermined process on the computer. In other words, acooperative action is exerted on the computer by installing the computerprogram according to claim 7 of the present application on the computer,so that a function effect similar to that of the method of controllingthe robot device according to claim 6 of the present application isobtained.

The technology recited in claim 8 of this application is

a program storage medium storing a control program of a robot device,which allows a computer to execute:

a step of obtaining a reference image by photographing a hand set in aspecific position relative to a camera of a robot;

a dirt detecting step of detecting whether there is dirt on a lens ofthe camera or the hand by comparing a first detection image obtained byphotographing the hand set in the specific position with the referenceimage at the time of dirt detection; and

a determining step of determining on which of the lens of the camera andthe hand the dirt is by comparing a second detection image obtained byphotographing the hand moved from the specific position with the firstdetection image when detecting the dirt on the lens of the camera or thehand at the dirt detecting step.

Effects of the Invention

According to the technology disclosed in this specification, anexcellent robot device, a method of controlling the robot device, acomputer program, and a program storage medium capable of preferablydetecting difference between dirt and a scratch on a lens of a cameraand difference between dirt and a scratch on a hand may be provided.

Still another object, feature, and advantage of the technology disclosedin this specification will be clear by more detailed description basedon an embodiment to be described later and the attached drawings.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a view illustrating an external view of a robot device 100 towhich the technology disclosed in this specification may be applied.

FIG. 2 is a schematic diagram illustrating a degree-of-freedomconfiguration of a joint of the robot device 100 to which the technologydisclosed in this specification may be applied.

FIG. 3 is a schematic diagram illustrating a functional configuration ofthe robot device 100 to which the technology disclosed in thisspecification may be applied.

FIG. 4 is a view illustrating a configuration of a control unit 320.

FIG. 5 is a flowchart illustrating a procedure of the robot device 100to detect difference between dirt and a scratch on a lens of a cameraand difference between dirt and a scratch on a hand.

FIG. 6 is a view illustrating a state of moving the hand closer to astereo camera lens on a head to obtain a hand image A.

FIG. 7 is a view illustrating a state of moving the hand closer to afish-eye camera lens on the head to obtain the hand image A.

FIG. 8 is a view illustrating an example of the hand image A obtained asa reference image.

FIG. 9 is a view illustrating the hand image A and a hand image Bincluding a site X next to each other.

FIG. 10 is a view illustrating a state in which correlation becomes highin the site X on both of the hand image B and a hand image C due to thedirt or the scratch on the lens of the camera.

FIG. 11 is a view illustrating a state in which the correlation becomeslow in the site X on both of the hand image B and the hand image Cbecause the dirt or the scratch moves along with the movement of thehand due to the dirt or the scratch on the lens of a surface of thehand.

FIG. 12 is a view illustrating a state in which the robot device 100wipes the dirt on the fish-eye camera lens on the head.

MODE FOR CARRYING OUT THE INVENTION

Hereinafter, an embodiment of the technology disclosed in thisspecification is described in detail with reference to the drawings.

FIG. 1 illustrates an external view of a robot device 100 to which thetechnology disclosed in this specification may be applied. The robotdevice 100 is a link structural band obtained by connecting a pluralityof links with joints in which each joint is operated by an actuator.FIG. 2 schematically illustrates a degree-of-freedom configuration ofthe joint of the robot device 100. The illustrated robot device 100 ismainly placed at a home environment for providing housework, nursingcare and the like; this may also be used for various purposes such asindustrial purposes.

The illustrated robot device 100 is provided with two drive wheels 101Rand 101L opposed to each other on a base portion as moving means. Thedrive wheels 101R and 101L are driven by drive wheel actuators 102R and102L, which rotate about a pitch axis, respectively. Meanwhile, in FIG.2, reference numerals 151, 152, and 153 represent non-existentunderactuated joints corresponding to a translational degree of freedomin an X direction (front-rear direction), a translational degree offreedom in a Y direction (right-left direction), and a rotational degreeof freedom about a yaw axis, respectively, of the robot device 100relative to a floor surface for representing that the robot device 100moves around a virtual world.

The moving means is connected to an upper body through a hip joint. Awaist joint is driven by a waist joint pitch axis actuator 103, whichrotates about the pitch axis. The upper body is composed of right andleft two arms and a head connected through a neck joint. Each of theright and left arms has a total of seven degrees of freedom includingthree degrees of freedom at a shoulder joint, two degrees of freedom atan elbow joint, and two degrees of freedom at a wrist joint. The threedegrees of freedom at the shoulder joint are driven by a shoulder jointpitch axis actuator 104R/L, a shoulder joint roll axis actuator 105R/L,and a shoulder joint yaw axis actuator 106R/L. The two degrees offreedom at the elbow joint are driven by an elbow joint pitch axisactuator 107R/L and an elbow joint yaw axis actuator 108R/L. The twodegrees of freedom at the wrist joint are driven by a wrist joint rollaxis actuator 109R/L and a wrist joint pitch axis actuator 110R/L. Twodegrees of freedom at the neck joint are driven by a neck joint pitchaxis actuator 111 and a neck joint yaw axis actuator 112. One degree offreedom at a hand joint is driven by a hand joint roll axis actuator113R/L.

Meanwhile, although the illustrated robot device 100 is provided withopposed-two-wheel type moving means, the scope of the technologydisclosed in this specification is not limited to the opposed-two-wheeltype moving means. For example, the technology disclosed in thisspecification may also be similarly applied to the robot device 100provided with leg type moving means.

FIG. 3 schematically illustrates a functional configuration of the robotdevice 100. The robot device 100 is composed of a control unit 320,which integrally controls entire operation and performs other dataprocessing, an input/output unit 340, a drive unit 350, and a powersupply unit 360. Each unit is hereinafter described.

The input/output unit 340 includes a camera 305 corresponding to an eyeof the robot device 100, a microphone 306 corresponding to an earthereof, a pressure-sensitive sensor 308 arranged on a site such as thehead and a back for detecting user touch and the like as an input unit.A speaker 307 corresponding to a mouth, an LED indicator (eye lamp) 309,which creates facial expressions by combination of blinks and timing oflighting and the like are included as an output unit. Meanwhile, thecamera 305 may also include a camera with fish-eye lens in thesubstantial center of the head in addition to a stereo cameracorresponding to right and left eyes.

The drive unit 350 is a functional module for realizing the degree offreedom at each joint of the robot device 100 and is composed of aplurality of driving units provided for each of a roll axis, the pitchaxis, and the yaw axis at each joint. Each driving unit is composed ofcombination of a motor 351, which performs rotational operation about apredetermined axis, an encoder 352, which detects a rotational positionof the motor 351, and a driver 353, which adaptively controls therotational position and a rotational speed of the motor 351 based on anoutput of the encoder 352.

The power supply unit 360 is a functional module, which feeds power toeach electric circuit and the like in the robot device 100, composed ofa rechargeable battery 361 and a charge/discharge controller 362, whichmanages a charge/discharge state of the rechargeable battery 361.

FIG. 4 illustrates a configuration of the control unit 320 in furtherdetail. As illustrated in the drawing, the control unit 320 has aconfiguration in which a CPU (central processing unit) 401 as a maincontroller is bus-connected to a memory and other circuit components,and a peripheral device. The CPU 401 may communicate with each device ona bus 408 by specifying an address thereof.

A RAM (random access memory) 402 is used for loading a program codeexecuted by the CPU 401 and temporarily storing working data by anexecution program. A ROM (read only memory) 403 permanently stores aself-diagnostic test program executed when the power is on and a controlprogram, which defines operation of the robot device 100. A non-volatilememory 404 is composed of an electrically erasable and rewritable memorydevice such as an EEPROM (electrically erasable and programmable ROM),for example, and is used for storing data to be sequentially updatedsuch as an encryption key and other security information, and a controlprogram to be installed after shipment in a non-volatile manner.

The control program of the robot device 100 includes a recognitionprocessing program, which processes a sensor input of the camera 305,the microphone 306, the pressure-sensitive sensor 308 and the like torecognize, a control program, which controls operation such as drive ofeach junction motor 351 and an audio output of the speaker 307, and thelike.

An interface 405 is a device interconnected with a device out of thecontrol unit 320 for enabling data exchange. The interface 405 performsdata input/output between the same and the camera 305, the microphone306, and the speaker 307, for example. The interface 405 also performsinput/output of the data and a command between the same and each ofdrivers 353-1 . . . in the drive unit 350. An interface 25 is providedwith a general-purpose interface for connecting a peripheral device of acomputer such as a parallel interface such as IEEE1394, a USB (universalserial bus) interface, and a memory card interface (card slot) and maymove the program and the data between the same and a locally connectedexternal device.

Further, the control unit 320 includes a wireless communicationinterface 406, a network interface card (NIC) 407 and the like and mayperform data communication with various external host computers throughproximity wireless data communication such as Bluetooth (™), a wirelessnetwork such as IEEE802.11, and a wide area network such as theInternet.

The robot device 100 according to this embodiment is provided with afunction to detect dirt and a scratch on a lens of the camera 305 byautonomous operation; a main feature thereof is to detect the dirt andthe scratch on the lens of the camera 305 by using an image of aspecific site of the robot device 100 such as a hand taken by the camera305 as a reference image. Herein, when the image of the hand taken bythe camera 305 is used as the reference image, the dirt and the scratchdetected at the time of detection might be due to both of the lens ofthe camera 305 and the hand; however, the robot device 100 according tothis embodiment may detect whether they are due to the lens of thecamera 305 or the hand and may detect difference between the dirt andthe scratch as described later.

When there is the dirt on an object grasping unit such as the hand, agrasped object gets dirty and this gives an adverse mental effect tosomeone who receives the object. On the contrary, the robot device 100according to this embodiment may detect the dirt on the hand andfurthermore remove the dirt by autonomous cleaning operation and thelike, so that this does not give the adverse mental effect to a user.

FIG. 5 illustrates a flowchart of a procedure of the robot device 100 todetect the difference between the dirt and the scratch on the lens ofthe camera and the difference between the dirt and the scratch on thehand.

As a precondition to start the procedure, the reference image isobtained in advance. When the image obtained by photographing the handis used as the reference image as described above, a hand image obtainedby photographing the hand set in a specific position relative to thecamera 305 is registered as the reference image. The hand image used asthe reference image is hereinafter referred to as a “hand image A”.

When the camera 305 includes the camera with fish-eye lens in thesubstantial center of the head in addition to the stereo cameracorresponding to the right and left eyes, the hand image A is obtainedto be registered for both of a stereo camera lens and a fish-eye cameralens. FIG. 6 illustrates a state of moving the hand closer to the stereocamera lens on the head to obtain the hand image A. FIG. 7 illustrates astate of moving the hand closer to the fish-eye camera lens on the headto obtain the hand image A. FIG. 8 illustrates an example of the handimage A obtained as the reference image (an area enclosed by a dottedline in the drawing corresponds to the hand image A).

In a detecting process, a detection image is first obtained (step S501).The detection image is obtained by photographing the hand by each of thestereo camera on the head and the camera with fish-eye lens on the headin the same posture as that taken when the reference image is obtainedas illustrated in FIGS. 6 and 7. The hand image obtained as thedetection image is hereinafter referred to as a “hand image B”.

Next, correlation between the hand image A and the hand image B iscalculated (step S502). When there is no dirt and scratch on both of thelens of the camera and a surface of the hand, the correlation betweenthe hand image A and the hand image B must be high over an entire image.Therefore, when the correlation is high over the entire image as aresult of calculating the correlation between the images at step S502,it is determined that there is no dirt and scratch on the lens of thecamera and the surface of the hand (step S503) and this processingroutine is finished.

On the other hand, when the lens of the camera gets dirty or isscratched and when the surface of the hand gets dirty or is scratchedafter the hand image A is obtained, the correlation between the imagesbecomes low in a site with the dirt or the scratch. Therefore, when asite with low correlation is detected as a result of calculating thecorrelation between the images at step S502, it is determined that thereis the dirt or the scratch on at least one of the lens of the camera andthe surface of the hand, and a subsequent process is executed. The sitewith the low correlation between the images is hereinafter referred toas a “site X”. FIG. 9 illustrates the hand image A and the hand image Bincluding the site X next to each other (areas enclosed by a dotted linein the drawing correspond to the hand image A and the hand image B). Itmay be understood that the correlation between the images becomes low inthe site X with reference to the drawing.

When it is determined that there is the dirt or the scratch on at leastone of the lens of the camera and the surface of the hand at step S502,a process for specifying which of the lens of the camera and the surfaceof the hand causes the low correlation in the site X is subsequentlyperformed.

First, the hand is moved relative to the camera to photograph anotherposition of the hand in the same posture as that taken when thereference image is obtained as illustrated in FIGS. 6 and 7 (step S504).The image obtained at that time is hereinafter referred to as a “handimage C”. Then, the correlation between the hand image B and the handimage C is calculated (step S505).

If the site X in which the correlation is low when the correlationbetween the hand image A and the hand image B is calculated is due tothe dirt or the scratch on the lens of the camera, the correlation inthe site X on the image remains high even when the hand is moved.Therefore, when the correlation in the site X on the image remains highas a result of calculating the correlation between the hand image B andthe hand image C at step S505, it is determined that there is the dirtor the scratch on the lens of the camera (step S506). FIG. 10illustrates a state in which the correlation becomes high in the site Xon both of the hand image B and the hand image C due to the dirt or thescratch on the lens of the camera (areas enclosed by a dotted line inthe drawing correspond to the hand image B and the hand image C).

On the other hand, if the site X of the hand image B is due to the dirtor the scratch on the surface of the hand, the site also moves on thehand image after the hand is moved. Therefore, when the correlation inthe site X on the image becomes low as a result of calculating thecorrelation between the hand image B and the hand image C, it isdetermined that there is the dirt or the scratch on the surface of thehand (step S507). FIG. 11 illustrates a state in which there is the dirtor the scratch on the lens on the surface of the hand, so that the dirtor the scratch moves along with the movement of the hand and thecorrelation becomes low in the site X on both of the hand image B andthe hand image C (areas enclosed by a dotted line in the drawingcorrespond to the hand image B and the hand image C).

When it is determined that there is the dirt or the scratch on the lensof the camera, this is first assumed to be the dirt and a portion withthe dirt on the lens corresponding to the site X is cleaned (step S508).Although cleaning work of the lens may be manually performed by theuser, in this embodiment, the robot device 100 performs autonomous workto wipe the dirt with lens cleaner and the like using the hand. FIG. 12illustrates a state in which the robot device 100 wipes the dirt on thefish-eye camera lens on the head.

After the dirt on the lens is wiped, the hand is photographed again byeach of the stereo camera on the head and the camera with fish-eye lenson the head in the same posture as that taken when the reference imageis obtained as illustrated in FIGS. 6 and 7 (step S509). The hand imageobtained after wiping is hereinafter referred to as a “hand image B′”.Then, the correlation between the hand image A and the hand image B′ iscalculated anew (step S510).

In a case of the dirt on the lens of the camera, the dirt on the lens inthe site X is removed by the cleaning, so that the hand image B′approaches the hand image A, which is the reference image. When thecorrelation is high over an entire image as a result of calculating thecorrelation between the hand image A and the hand image B′, thisprocessing routine is finished supposing that the cleaning of the lensof the camera is finished (step S512).

On the other hand, the scratch on the lens of the camera is not removedby the cleaning, so that the correlation between the hand image B′ andthe hand image A remains low in the site X. When a site with lowcorrelation is detected as a result of calculating the correlationbetween the hand image A and the hand image B′, it is determined thatthere is the scratch on the lens of the camera (step S511). When thereis the scratch on the lens of the camera, the robot device 100 mayfinish this processing routine after asking the user to replace the lens(step S513).

When it is determined that there is the dirt or the scratch on thesurface of the hand, this is first assumed to be the dirt and a portionwith the dirt on the surface of the hand corresponding to the site X iscleaned (step S514). Although cleaning work of the hand may be manuallyperformed by the user, in this embodiment, the robot device 100 performsautonomous work.

After the dirt on the surface of the hand is wiped, the hand isphotographed again by each of the stereo camera on the head and thecamera with fish-eye lens on the head in the same posture as that takenwhen the reference image is obtained as illustrated in FIGS. 6 and 7(step S515) to obtain the hand image B′. Then, the correlation betweenthe hand image A and the hand image B′ is calculated anew (step S516).

In a case of the dirt on the lens on the surface of the hand, the dirton the surface of the hand in the site X is removed by the cleaning, sothat the hand image B′ approaches the hand image A, which is thereference image. When the correlation is high over the entire image as aresult of calculating the correlation between the hand image A and thehand image B′, this processing routine is finished supposing that thecleaning of the lens on the surface of the hand is finished (step S518).

On the other hand, the scratch on the surface of the hand is not removedby the cleaning, so that the correlation between the hand image B′ andthe hand image A remains low in the site X. When the site with the lowcorrelation is detected as a result of calculating the correlationbetween the hand image A and the hand image B′, it is determined thatthere is the scratch on the surface of the hand (step S517). When thereis the scratch on the surface of the hand, the robot device 100 mayfinish this processing routine after asking the user to replace the hand(step S519).

Meanwhile, although not illustrated in FIG. 5, the robot device 100 mayphotograph the hand in the posture as illustrated in FIGS. 6 and 7 toupdate the reference image after the cleaning of the lens of the camerais finished at step S511 or after the cleaning of the surface of thehand is finished at step S516.

As described above, the robot device 100 according to this embodimentmay automatically detect the dirt on the lens of the camera and cleanthe same. Also, this may reduce erroneous detection of the image byautomatically detecting the dirt on the lens of the camera and cleaningthe same. Further, the robot device 100 may automatically detect thescratch on the lens of the camera and ask the user to replace the lens.

The robot device 100 according to this embodiment may automaticallydetect the dirt on the surface of the hand and clean the hand. Also,this may keep the object grasped by the hand clean by automaticallydetecting the dirt on the surface of the hand and cleaning the same.Further, the robot device 100 may automatically detect the scratch onthe surface of the hand and ask the user to replace the hand.

Meanwhile, the technology disclosed in this specification may also havea following configuration.

(1) A robot device, including: a camera; a hand; and a controller, whichprocesses an image taken by the camera and controls operation of thehand, wherein

the controller

obtains a reference image obtained by photographing the hand set in aspecific position relative to the camera,

detects whether there is dirt on a lens of the camera or the hand bycomparing a first detection image obtained by photographing the hand setin the specific position with the reference image at the time of dirtdetection, and

determines on which of the lens of the camera and the hand the dirt isby comparing a second detection image obtained by photographing the handmoved from the specific position with the first detection image whendetecting the dirt on the lens of the camera or the hand.

(2) The robot device according to (1), wherein the controller determinesthat there is no dirt on the lens of the camera and the hand whencorrelation between the first detection image and the reference image ishigh over an entire image and detects the dirt on the lens of the cameraor the hand in a low-correlation site when there is the low-correlationsite with low correlation on the image.(3) The robot device according to (2), wherein the controller determinesthat there is the dirt on the lens of the camera when the correlation ishigh in the low-correlation site on the image and determines that thereis the dirt on the hand when the correlation is low in thelow-correlation site on the image when comparing the second detectionimage with the first detection image.(4) The robot device according to (1), wherein the controller wipes adirty portion on the lens of the camera and then compares a thirddetection image obtained by photographing the hand set in the specificposition with the reference image to detect whether there is a scratchon the lens of the camera when determining that there is the dirt on thelens of the camera.(5) The robot device according to (1), wherein the controller wipes adirty portion on the hand and then compares a fourth detection imageobtained by photographing the hand set in the specific position with thereference image to detect whether there is a scratch on the hand whendetermining that there is the dirt on the hand.(6) A method of controlling a robot device, including: a step ofobtaining a reference image by photographing a hand set in a specificposition relative to a camera of a robot;

a dirt detecting step of detecting whether there is dirt on a lens ofthe camera or the hand by comparing a first detection image obtained byphotographing the hand set in the specific position with the referenceimage at the time of dirt detection; and

a determining step of determining on which of the lens of the camera andthe hand the dirt is by comparing a second detection image obtained byphotographing the hand moved from the specific position with the firstdetection image when detecting the dirt on the lens of the camera or thehand at the dirt detecting step.

(7) A computer program for controlling a robot device, which allows acomputer to execute: a step of obtaining a reference image byphotographing a hand set in a specific position relative to a camera ofa robot; a dirt detecting step of detecting whether there is dirt on alens of the camera or the hand by comparing a first detection imageobtained by photographing the hand set in the specific position with thereference image at the time of dirt detection; and a determining step ofdetermining on which of the lens of the camera and the hand the dirt isby comparing a second detection image obtained by photographing the handmoved from the specific position with the first detection image whendetecting the dirt on the lens of the camera or the hand at the dirtdetecting step.(8) A program storage medium storing a control program of a robotdevice, which allows a computer to execute: a step of obtaining areference image by photographing a hand set in a specific positionrelative to a camera of a robot; a dirt detecting step of detectingwhether there is dirt on a lens of the camera or the hand by comparing afirst detection image obtained by photographing the hand set in thespecific position with the reference image at the time of dirtdetection; and a determining step of determining on which of the lens ofthe camera and the hand the dirt is by comparing a second detectionimage obtained by photographing the hand moved from the specificposition with the first detection image when detecting the dirt on thelens of the camera or the hand at the dirt detecting step.

INDUSTRIAL APPLICABILITY

The technology disclosed in this specification is described above indetail with reference to a specific embodiment. However, it is obviousthat one skilled in the art may modify or replace the embodiment withoutdeparting from the scope of the technology disclosed in thisspecification.

Although the embodiment applied to an opposed-two-wheel type robotdevice is mainly described in this specification, the scope of thetechnology disclosed in this specification is not limited to this. Thistechnology may also be similarly applied to the robot device providedwith the camera and the hand even if this is provided with anothermoving means or this is not provided with the moving means.

Although the image obtained by photographing the hand of the robotdevice is used as the reference image in this specification, an imageobtained by photographing a site of the robot device other than the handmay also be used as the reference image.

Although the embodiment regarding a household robot is mainly describedin this specification, it goes without saying that this technology mayalso be similarly applied to the robot device for various purposesincluding an industrial robot.

In short, this technology is disclosed as an example, so that thecontents of this specification should not be interpreted in a limitedmanner. In order to determine the scope of this technology, claimsshould be taken into consideration.

REFERENCE SIGNS LIST

100 robot device, 101 drive wheel, 102 drive wheel actuator, 103 waistjoint pitch axis actuator, 104 shoulder joint pitch axis actuator, 105shoulder joint roll axis actuator, 106 shoulder joint yaw axis actuator,107 elbow joint pitch axis actuator, 108 elbow joint yaw axis actuator,109 wrist joint roll axis actuator, 110 neck joint pitch axis actuator,111 neck joint pitch axis actuator, 113 hand joint roll axis actuator,151, 152, 153 underactuated joint, 305 camera, 306 microphone, 307speaker, 308 pressure-sensitive sensor, 309 LED indicator, 320 controlunit, 340 input/output unit, 350 drive unit, 351 motor, 352 encoder, 353driver, 360 power supply unit, 361 rechargeable battery, 362charge/discharge controller, 401 CPU, 402 RAM, 403 ROM, 404 non-volatilememory, 405 interface, 406 wireless communication interface, 407 networkinterface card, 408 bus

1. An information processing device, comprising: circuitry configured todetect whether there is a foreign object on either an image capturingdevice or a subject by comparing a reference image with a first image,and determine which of the image capturing device and the subject hasthe foreign object thereon by comparing the first image with a secondimage on a condition that the foreign object is detected on the imagecapturing device or on the subject, wherein the reference image is animage of a specific site of a subject captured by the image capturingdevice, the first image is the image of the specific site of thesubject, in a same posture as that taken when the reference image isobtained, captured by the image capturing device, and the second imageis the image of the specific site of the subject, in a different postureas that taken when the first image is obtained, captured by the imagecapturing device.
 2. The device according to claim 1, wherein thecircuitry is configured to control performance of clean work on theimage capturing device or the subject after the determining which of theimage capturing device and the subject has the foreign object thereon.3. The device according to claim 2, wherein the circuitry is configuredto determine which of the image capturing device and the subject has theforeign object thereon by comparing the reference image with a thirdimage after the performance of clean work, wherein the third image isthe image of the specific site of the subject, in a same posture as thattaken when the reference image is obtained, captured by the imagecapturing device after the performance of clean work.
 4. The deviceaccording to claim 1, wherein the circuitry is configured to detect thatthere is no foreign object on the image capturing device and the subjectwhen the correlation between the first image and the reference image ishigher than the predetermined value for an entirety of the first imageand the reference image, and detect that there is the foreign object oneither the image capturing device or the subject when it is determinedthat a site exists in which the correlation is lower than thepredetermined value.
 5. The device according to claim 4, wherein thecircuitry is configured to, when the circuitry detects that there is theforeign object on either of the image capturing device or the subject,determine that there is the foreign object on the image capturing devicewhen the correlation between the first image and the second image in thesite, in which the correlation between the first image and the referenceimage is lower, is higher than the predetermined value, and determinethat there is the foreign object on the subject when the correlationbetween the first image and the second image in the site, in which thecorrelation between the first image and the reference image is lower, islower than the predetermined value.
 6. The device according to claim 1,wherein the circuitry is configured to capture the specific site of thedevice as the subject.
 7. An information processing method, comprising:detecting whether there is a foreign object on either an image capturingdevice or a subject by comparing a reference image with a first image;and determining which of the image capturing device and the subject hasthe foreign object thereon by comparing the first image with a secondimage on a condition that the foreign object is detected on the imagecapturing device or on the subject, wherein, the reference image is animage of a specific site of a subject captured by the image capturingdevice, the first image is the image of the specific site of the subjectin a same posture as that taken when the reference image is obtained,.captured by the image capturing device, and the second image is theimage of the specific site of the subject in a different posture as thattaken when the first image is obtained, captured by the image capturingdevice.
 8. The information processing method according to claim 7,further comprising: controlling performance of clean work on the imagecapturing device or the subject after the determining which of the imagecapturing device and the subject has the foreign object thereon.
 9. Theinformation processing method according to claim 8, further comprising:determining which of the image capturing device and the subject has theforeign object thereon by comparing the reference image with a thirdimage after the performance of clean work, wherein the third image isthe image of the specific site of the subject, in a same posture as thattaken when the reference image is obtained, captured by the imagecapturing device after the performance of clean work.
 10. Theinformation processing method according to claim 1, wherein thedetecting further comprises: detecting that there is no foreign objecton the image capturing device and the subject when the correlationbetween the first image and the reference image is higher than thepredetermined value for an entirety of the first image and the referenceimage; and detecting that there is the foreign object on either theimage capturing device or the subject when it is determined that a siteexists in which the correlation is lower than the predetermined value.11. The information processing method according to claim 10, whereinwhen the detecting detects that there is the foreign object on either ofthe image capturing device or the subject, the determining furthercomprises: determining that there is the foreign object on the imagecapturing device when the correlation between the first image and thesecond image in the site, in which the correlation between the firstimage and the reference image is lower, is higher than the predeterminedvalue; and determining that there is the foreign object on the subjectwhen the correlation between the first image and the second image in thesite, in which the correlation between the first image and the referenceimage is lower, is lower than the predetermined value.
 12. Theinformation processing method according to claim 7, further comprising:capturing the specific site of the device as the subject.
 13. Anon-transitory computer readable medium having stored thereon a programthat when executed by processing circuitry causes the processingcircuitry to implement an information processing method, comprising:detecting whether there is a foreign object on either an image capturingdevice or a subject by comparing a reference image with a first image;and determining which of the image capturing device and the subject hasthe foreign object thereon by comparing the first image with a secondimage on a condition that the foreign object is detected on the imagecapturing device or on the subject, wherein, the reference image is animage of a specific site of a subject captured by the image capturingdevice, the first image is the image of the specific site of thesubject, in a same posture as that taken when the reference image isobtained, captured by the image capturing device, and the second imageis the image of the specific site of the subject, in a different postureas that taken when the first image is obtained, captured by the imagecapturing device.